<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Author" content="cjw">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <style>
	*{margin: 0; padding: 0;}
	div { padding: 10px;}
	div, h1{
		border: 1px solid #ddd;
		margin: 10px;
	}
  </style>
 </head>
 <body>
	<h1>div1</h1>
	<div class="p" data="1" style="jidjf">
		<h1>child1</h1>
		<h1>child2</h1>
	</div>
	<h1>div3</h1>
	<script src="js/MyjsV0-8.2.js"></script>
	<script>
	var str = new JSONObject();
	console.log(classof(str));
	if(classof(str) == "String")
		console.log("str");
	else
		console.log("sss");
	//console.log($(".p").eq(0).appendTop("<h1>兄弟顶部</h1>"));
	//console.log($(".p").eq(0).appendEnd("<h1>兄弟尾部</h1>"));
	//console.log($(".p").eq(0).insertEnd("<h1>子元素尾部</h1>"));
	//console.log($(".p").eq(0).insertTop("<h1>子元素顶部</h1>").nodeName.toLowerCase());
	//innerHTML
	
	var temp = $$.cre("h1").attr("class", "tt").attr("style", "tt").attr("id", "tt").text("33元素");
	
	console.log(temp.appendTo($(".p").eq(0)));
	</script>
 </body>
</html>